/*
 * @Author: 吕佳伟
 * @Date: 2021-03-30 11:54:11
 * @LastEditors: 吕佳伟
 * @LastEditTime: 2021-07-03 21:36:05
 * @Description: file content
 */
import 'package:flutter/material.dart';
import 'package:flutter_calendar/flutter_calendar.dart';

///课程日历构建类
///吕佳伟
class CalendarForClass extends StatelessWidget {
  final Function getDates;
  const CalendarForClass({Key key, @required this.getDates}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Calendar(
      onDateSelected: (v) => getDates(v),
    );
  }
}
